﻿using System;
using System.Windows;
using System.Windows.Data;
using Telerik.Windows.Controls;

namespace MedLink2011.Views.Patients.Controls.FirstLook.Converters
{
    public class CategoryToVisibilityReverseConverter: IValueConverter
    {

        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value != null && ((Category)value).CategoryName != "LunchAndCoffee")
            {
                return Visibility.Collapsed;
            }
            return Visibility.Visible;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
